import React from 'react';
import {Tabs,} from 'antd';
import {connect} from 'react-redux';
import PayNews from "./PayNews";
import ToppingNews from "./ToppingNews";

const TabPane = Tabs.TabPane;

const Page = (props) => {
    return (
        <div style={{padding: '14px 14px 0 14px', background: '#fff', minHeight: 360}}>
            {/*<label><p>用户广告排名管理 / 管理员账号管理</p></label>*/}
            <Tabs className={'advertising-tabs'} type="card">
                <TabPane tab={'发布消息付费'} key={'1'}>
                    <PayNews/>
                </TabPane>
                <TabPane tab={'消息置顶付费设置'} key={'2'}>
                    <ToppingNews/>
                </TabPane>
            </Tabs>
        </div>
    );
};

const mapStateToProps = (state) => {
    return {
        ...state.appReducer, // 全局的reducers
    };
};

export default connect(mapStateToProps)(Page);